Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix go mTOn filter bug #3144

Merged
merged 5 commits into from
Oct 20, 2021
Merged

Conversation

nevermore3
Copy link
Contributor

close #3090

@nevermore3 nevermore3 added this to the v2.6.0 milestone Oct 19, 2021
@nevermore3 nevermore3 added type/bug Type: something is unexpected ready-for-testing PR: ready for the CI test labels Oct 19, 2021
@nevermore3 nevermore3 added the cherry-pick-v2.6 PR: need cherry-pick to this version label Oct 19, 2021
@nevermore3 nevermore3 added ready-for-testing PR: ready for the CI test and removed ready-for-testing PR: ready for the CI test labels Oct 19, 2021
@Sophie-Xie Sophie-Xie requested a review from czpmango October 19, 2021 07:39
Comment on lines 506 to 509
const auto& projectInput =
(joinInput || joinDst) ? loopBody->outputVar() : sampleLimit->outputVar();
(loopBody != getDst) ? loopBody->outputVar() : sampleLimit->outputVar();
loopBody = Project::make(qctx, loopBody, goCtx_->yieldExpr);
loopBody->setInputVar(projectInput);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not delete these codes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

execution flow and data flow are sometimes inconsistent, so explicit input is required

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still think there is redundant code logic and the Project node has nothing to do with getDst

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loopbody may be getDst or filter, but the input of project can only be sample or filter, This is why you need to specify the project's input

@codecov-commenter
Copy link

codecov-commenter commented Oct 19, 2021

Codecov Report

Merging #3144 (99ab5c6) into master (d05ca51) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3144      +/-   ##
==========================================
+ Coverage   84.98%   85.01%   +0.03%     
==========================================
  Files        1289     1289              
  Lines      117763   117759       -4     
==========================================
+ Hits       100076   100116      +40     
+ Misses      17687    17643      -44     
Impacted Files Coverage Δ
src/graph/util/ToJson.h 100.00% <ø> (ø)
src/graph/validator/ACLValidator.cpp 85.07% <ø> (ø)
src/graph/validator/ACLValidator.h 100.00% <ø> (ø)
src/graph/validator/AdminValidator.cpp 78.78% <ø> (ø)
src/graph/validator/AdminValidator.h 67.53% <ø> (ø)
src/graph/validator/BalanceValidator.cpp 0.00% <ø> (ø)
src/graph/validator/DownloadValidator.cpp 0.00% <ø> (ø)
src/graph/validator/DownloadValidator.h 0.00% <ø> (ø)
src/graph/validator/FindPathValidator.h 100.00% <ø> (ø)
src/graph/validator/GetSubgraphValidator.cpp 95.29% <ø> (ø)
... and 36 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4f48045...99ab5c6. Read the comment docs.

CPWstatic
CPWstatic previously approved these changes Oct 19, 2021
@CPWstatic CPWstatic merged commit 2a86a7a into vesoft-inc:master Oct 20, 2021
@nevermore3 nevermore3 deleted the fix_go_mton_bug branch October 20, 2021 05:01
Sophie-Xie pushed a commit that referenced this pull request Oct 20, 2021
* fix go mTOn filter bug

* add test case
bright-starry-sky pushed a commit that referenced this pull request Oct 20, 2021
* Fixed an issue where the server still started with a wrong ip/host (#3057)

* Fix wrong local ip.

* Address comment.

* Fix alter drop (#3036)

* disable modify same col

* add test case

* refactor ddl

* fix pytest error

* address comment

Co-authored-by: Yee <[email protected]>

* fix fetch vertex properties(vertex) bug (#3120)

* fix fetch vertex properties(vertex) bug

* address comment

Co-authored-by: Yee <[email protected]>

* fix go yield bug (#3128)

* fix go yield bug

* add test case

* Remove unnecessary check (#3112)

Co-authored-by: cpw <[email protected]>
Co-authored-by: Yee <[email protected]>

* fix go mTOn filter bug (#3144)

* fix go mTOn filter bug

* add test case

* Geo spatial: 3. geography schema, data, index and optimization (#3043)

* Geo spatial: 3. geography data and index

Co-authored-by: cpw <[email protected]>
Co-authored-by: jimingquan <[email protected]>
Co-authored-by: Yee <[email protected]>
Co-authored-by: Yichen Wang <[email protected]>
Co-authored-by: jie.wang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick-v2.6 PR: need cherry-pick to this version ready-for-testing PR: ready for the CI test type/bug Type: something is unexpected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The multi-step filtering on edge is invalid
5 participants